﻿namespace iTPS.Service.Core
{
    public enum EnumiTPSException
    {
        无错误 = 200,

        未知错误 = 201,
        应用程序错误 = 202,
        Http请求错误 = 203,
        Adapter一般错误 = 250,


        异常Identity = 302,
        异常DeviceNo = 303,
        异常LoginName = 304,
        异常Password = 305,
        异常ValidateCode = 307,
        异常Argument = 308,
        验证身份信息失败 = 309,
        验证RSA身份信息失败 = 310,
        验证IP地址白名单失败 = 311,

        异常DeviceType = 4201,
        用户不存在 = 4202,
        Token异常 = 4206,

        用户需要绑定手机号 = 4215,
        用户需绑定银行卡 = 4216,
        用户需要处理异常订单 = 4217,

        //业务错误
        购买数量错误 = 401,
        购买票价错误 = 402,
        站点票价不存在 = 403,
        订单状态错误 = 404,
        订单不存在 = 405,
        设备限制无法取票 = 407,
        取票时间错误 = 409,

        HttpServicePostException = 4000,
        HttpServicePostWebException = 4002,
        HttpServicePostThreadAbort = 4003,
        APIHeaderError = 4009,
        APIArgumentError = 4010,
        APIIPAddressNoPermission = 4011,
        APIPackageValidateError = 4012,

        AdapterError = 4030,
        MQError = 4040,

        支付错误 = 700,
        支付错误_初始化失败 = 701,
        支付错误_已支付 = 702,
        支付错误_设置主要自动支付失败 = 703,
        支付错误_未发现自动支付绑定信息 = 704,
        支付错误_未知的支付渠道 = 705,
        支付错误_支付宝支付错误 = 711,
        支付错误_支付宝验签失败 = 712,
        支付错误_支付宝查询失败 = 713,
        支付错误_支付宝退款失败 = 714,
        支付错误_支付宝自动支付取消错误 = 715,
        支付错误_支付宝自动支付开通错误 = 721,
        支付错误_支付宝自动支付开通错误开通记录已存在建议先解除授权 = 722,
        支付错误_支付宝自动支付失败 = 731,
        支付错误_支付宝APP支付失败 = 732,
        支付错误_支付宝扫码支付失败 = 733,

        支付错误_微信支付错误 = 741,
        支付错误_微信支付验签失败 = 742,
        支付错误_微信自动支付开通错误 = 743,
        支付错误_微信自动支付开通错误开通记录已存在建议先解除授权 = 744,
        支付错误_微信解约失败签约用户信息不存在 = 745,
        支付错误_微信解约失败解约接口报错 = 746,
        支付错误_微信退款失败 = 747,
        支付错误_微信查询失败 = 748,
        支付错误_微信退款查询失败 = 749,

        支付错误_银联支付错误 = 771,
        支付错误_银联支付验签失败 = 772,
        支付错误_银联支付签名证书加载失败 = 773,
        支付错误_银联退款失败 = 774,
        支付错误_银联查询失败 = 775,
        支付错误_银联支付自动支付开通错误 = 781,
        支付错误_银联支付自动支付开通错误银行卡不支持 = 782,
        支付错误_银联支付自动支付错误 = 783,
        支付错误_银联APP支付失败 = 791,
        支付错误_银联网页支付失败 = 792,
        支付错误_银联扫码支付失败 = 793,


        payAutoChannelError = 4101,
        PayUnionAppConsumeError = 4102,
        银联退货错误_未找到订单 = 791,
        银联退货错误_订单已处理 = 792,
        银联退货错误_退货失败 = 793,

        UserError = 4200,
        UserDeviceTypeError = 4201,
        UserNotExists = 4202,
        UserPasswordError = 4203,
        UserPasscodeError = 4204,
        UserMobilePhoneError = 4205,
        UserTokenError = 4206,
        UserModifyCoinError = 4207,
        UserMasterOpenidError = 4208,
        UserMobilePhoneExists = 4209,
        UserNickNameError = 4210,
        UserNickNameExists = 4211,
        UserWechatNotExists = 4212,
        UserEnableError = 4213,
        UserSignError = 4214,
        UserNeedCompleteMobilephone = 4215,
        UserNeedCompleteUnionCard = 4216,
        UserWechatLoginTypeError = 4217,
        UnknowUserChannel = 4218,
        UserAliNotExist = 4219,

        EmployeeMobileError = 4250,
        EmployeeNoError = 4251,
        EmployeeIdError = 4252,
        EmplyeeStatusError = 4253,


        APIError = 4300,
        APIGetMasterOpendIdError = 4301,


        PushError = 4400,
        PushMobilephoneError = 4401,
        PushTooFrequently = 4402,
        PushPasscodeError = 4403,
        PushDeviceTypeError = 4404,
        PushCompareVersionError = 4405,

        WechatError = 4500,
        WechatCodeError = 4501,
        WechatAppIdError = 4502,
        WechatSecretError = 4503,
        WechatLoginTypeError = 4504,
        AliAppCodeError = 4521,

        UKeeperError = 4600,
        UKeeperSystemCodeError = 4601,

        CouponError = 4700,
        CouponMerchantError = 4710,
        CouponMerchantGuidCanNotBeNull = 4711,
        CouponMerchantGuidError = 4712,

        CouponActivityError = 4720,
        CouponActivityGuidCanNotBeNull = 4721,
        CouponActivityGuidError = 4722,
        CouponActivityStatusError = 4723,

        CouponRewardError = 4730,
        CouponRewardInputCodeError = 4731,
        CouponRewardActivityDetailError = 4732,
        CouponRewardTimeError = 4733,
        CouponRewardStatusError = 4734,
        CouponRewardNoSurplus = 4735,

        CouponDetailError = 4740,
        CouponDetailGuidCanNotBeNull = 4741,
        CouponDetailNotExists = 4742,

        CouponGetIdError = 4750,

        CouponListError = 4760,

        CouponCostError = 4770,
        CouponCostCancelError = 4780,

        二维码错误 = 5000,
        二维码或提取码错误 = 5001,
        二维码生成错误 = 5002,

        二维码交易异常申请错误_交易不存在 = 5101,
        二维码交易异常申请错误_交易状态不正确 = 5102,
        二维码交易异常申请错误_描述不正确 = 5103,
        二维码交易异常申请错误_进出站时间异常 = 5104,
        二维码交易异常申请错误_进出站异常 = 5105,

        二维码交易异常申请处理错误_交易不存在 = 5121,
        二维码交易异常申请处理错误_交易状态不正确 = 5122,

        二维码取消交易错误_交易不存在 = 5201,
        二维码取消交易错误_退款金额不正确 = 5202,
        二维码取消交易错误_交易状态不正确 = 5203,
        二维码取消交易错误_申请记录不存在 = 5204,

        二维码再次交易错误_订单信息异常 = 5301,
        二维码再次交易错误_订单状态异常 = 5302,

        二维码补登错误 = 5401,


        UnknowChannelOrder = 4001,

        码应用错误 = 6000,
        码应用_活动状态异常 = 6001,
        码应用_活动总积分异常 = 6002,

        码应用_票卡类型获取异常 = 6101
    }

}
